package com.example.myapplication.ui;

import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.RecyclerView;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.example.myapplication.R;

public class MainActivity extends AppCompatActivity implements View.OnClickListener {

    private Button btBaseQuickAdapter;
    private Context context;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        context = this;
        findViews();
        setClickers();
    }

    private void findViews() {
        btBaseQuickAdapter = findViewById(R.id.bt_base_quick_adapter);
    }

    private  void setClickers(){
        btBaseQuickAdapter.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        Intent intent = new Intent();
        switch (view.getId()){
            case R.id.bt_base_quick_adapter:
                intent.setClass(context,HomeActivity.class);
                intent.putExtra("catagory","quick_adapter");
                startActivity(intent);
                break;
        }
    }
}